package cn.stylefeng.guns.modular.hx.order.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.hx.order.entity.HxOrderPutDetailed;
import cn.stylefeng.guns.modular.hx.order.model.params.HxOrderPutDetailedParam;
import cn.stylefeng.guns.modular.hx.order.model.result.HxOrderPutDetailedResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 入库订单明细表 服务类
 * </p>
 *
 * @author zhucx
 * @since 2023-08-05
 */
public interface HxOrderPutDetailedService extends IService<HxOrderPutDetailed> {

    /**
     * 新增
     *
     * @author zhucx
     * @Date 2023-08-05
     */
    void add(HxOrderPutDetailedParam param);

    /**
     * 删除
     *
     * @author zhucx
     * @Date 2023-08-05
     */
    void delete(HxOrderPutDetailedParam param);

    /**
     * 更新
     *
     * @author zhucx
     * @Date 2023-08-05
     */
    void update(HxOrderPutDetailedParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author zhucx
     * @Date 2023-08-05
     */
    HxOrderPutDetailedResult findBySpec(HxOrderPutDetailedParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author zhucx
     * @Date 2023-08-05
     */
    List<HxOrderPutDetailedResult> findListBySpec(HxOrderPutDetailedParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author zhucx
     * @Date 2023-08-05
     */
     LayuiPageInfo findPageBySpec(HxOrderPutDetailedParam param,String condition);

	List<HxOrderPutDetailedResult> findListBySpec2(HxOrderPutDetailedParam param);

	boolean saveBatchList(List<HxOrderPutDetailedParam> detailedList);

	List<HxOrderPutDetailedResult> totalListByGandPSpec(HxOrderPutDetailedParam hxOrderPutDetailedParam);

	void deleteBySpec(HxOrderPutDetailedParam detailedParam);

}
